home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
doom
/
turric03.zip
/
TURRIC03.ZIP
/
PROGS
/
JSUBS.QC
< prev
next >
Wrap
Text File
|
1996-12-31
|
2KB
|
80 lines
//** PATCH_BEGIN - gibbin3 ****
// Subroutines for gib related stuff.
// prototypes
void(string gibname, float dm) ThrowGib;
void(vector org, vector vel) SpawnMeatSpray;
float() random;
void() SUB_Gib =
{
local vector x, y, v;
x='1 0 0';
y='0 1 0';
v=x*(50-random()*100)+y*(50-random()*100);
if (random() < 0.8)
SpawnMeatSpray(self.origin, v);
else if (random() < 0.3)
ThrowGib("progs/gib1.mdl", self.health*3);
else if (random() < 0.5)
ThrowGib("progs/gib2.mdl", self.health*3);
else
ThrowGib("progs/gib3.mdl", self.health*3);
};
///////
void() SUB_Gib1 =
{
local vector x, y, v;
x='1 0 0';
y='0 1 0';
v=x*(50-random()*100)+y*(50-random()*100);
if (random() < 0.8)
SpawnMeatSpray(self.origin, v);
else if (random() < 0.3)
ThrowGib("progs/gib3.mdl", self.health*3);
else if (random() < 0.5)
ThrowGib("progs/zom_gib.mdl", self.health*3);
else
ThrowGib("progs/gib3.mdl", self.health*3);
};
///////
void() SUB_Gib2 =
{
local vector x, y, v;
x='1 0 0';
y='0 1 0';
v=x*(50-random()*100)+y*(50-random()*100);
if (random() < 0.8)
SpawnMeatSpray(self.origin, v);
else if (random() < 0.3)
ThrowGib("progs/zom_gib.mdl", self.health*3);
else if (random() < 0.5)
ThrowGib("progs/zom_gib.mdl", self.health*3);
else
ThrowGib("progs/gib3.mdl", self.health);
};
//** PATCH_END - gibbin3 ******
//** PATCH_BEGIN - gibbin3 - Turrican ****
void () SUB_SmallGib =
{
ThrowGib("progs/zom_gib.mdl", self.health*3);
};
//** PATCH_END - gibbin3 - Turrican ******
//** PATCH_BEGIN - temporary entity limiting - Turrican ****
void () SUB_RemoveTempEnt =
{
current_temp_entities = current_temp_entities - 1;
remove(self);
};
//** PATCH_END - temporary entity limiting - Turrican ******